package com.gxa.mall.service;

import com.gxa.mall.dao.EmployeeDao;
import com.gxa.mall.dao.SupplierDao;
import com.gxa.mall.model.Employee;
import com.gxa.mall.model.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierService {
    @Autowired
    SupplierDao supplierDao;
    public List<Supplier> toseeksupplier() {
       return supplierDao.toseeksupplier();
    }

    public List<Supplier> tolikeseek(String text) {
        return supplierDao.tolikeseek(text);
    }

    public void addemployee(Supplier supplier) {
        supplierDao.addemployee(supplier);
    }

  /*  *
     * 根据id查询员工信息
     * @param id
     * @return*/

    public Supplier toupdata(Integer id) {
        return supplierDao.toupdata(id);
    }

    public void saveemployee(Supplier supplier) {
        supplierDao.saveemployee(supplier);
    }

    public void toremove(Integer id) {
        supplierDao.toremove(id);
    }

    public Integer tosumem() {
        return supplierDao.tosumem();
    }
}
